<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./vue.js"></script>
    <script>
        window.onload=function(){
            Vue.mixin({
                data(){
                    return{
                        num:10
                    }
                },
                methods:{
                    handler(){
                        alert('!!!!!')
                    }
                },
                created(){
                    alert('hello');
                }
            })
            new Vue({
                el:'#app',
                data:{
                    num:99
                },
                methods:{
                    handler(){
                        alert('~~~~~~~~~~~~~~~~~')
                    }
                },
                created(){
                    alert(".................")
                }
            })
        }
    </script>
</head>
<body>
    <div id="app">
        <h1>{{num}}</h1>
        <button @click='handler'>click</button>
    </div>
</body>
</html>